package com.peak.distribution.manager.agent;

import java.util.List;

import com.peak.distribution.entity.agent.DisAgent;
import com.peak.distribution.entity.agent.DisAgentTeam;
import com.peak.spring.boot.api.manager.BaseManager;

public interface DisAgentTeamManager extends BaseManager<DisAgentTeam> {

	/**
	 * 代理商自己的团队
	 * @param agent
	 * @return
	 */
	DisAgentTeam getMyTeam(DisAgent leader);
	
	/**
	 * 得到所有的团队，包括父团队和自身团队
	 * @param leader
	 * @return
	 */
	List<DisAgentTeam> getAllTeam(DisAgent leader);
}
